<template>
  <input v-model="cloned.fruit" type="text" />
  <input v-model="cloned.drink" type="text" />
  <button @click="sync()">还原初始值</button>
</template>
<script setup>
import { useCloned } from '@vueuse/core'
const template = { fruit: 'banana', drink: 'water' }
const { cloned, sync } = useCloned(template)
</script>
